<?php
	include ("../../../config/koneksi.php");
	$id = $_GET['id'];
	if($id != ''){
		$desa = mysql_query("select * from desa where id_kecamatan = '$id'");
		echo "<table>
				<tr>
					<td width=95>Desa</td>
					<td>
						<select name=desa id=desa class=input2>
							<option value=''> - - Pilih Semua - - </option>";
							while($d = mysql_fetch_array($desa)){
								echo "<option value=$d[id_desa]>$d[desa]</option>";
							}
					echo "</select>
					</td>
				</tr>
			</table>";
	}
?>